/* Layout */
import Layout from '@/layout'
import PageView from '@/layout/PageView'
// import VoidView from '@/layout/VoidView'

/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/redirect',
    component: Layout,
    hidden: true,
    children: [
      {
        path: '/redirect/:path*',
        component: () => import(/* webpackChunkName: "Layout" */'@/components/Redirect/index')
      }
    ]
  },
  // {
  //   path: '/locker',
  //   name: 'locker',
  //   component: () => import(/* webpackChunkName: "Locker" */ '@/components/Locker/LockerIn.vue')
  // },
  {
    path: '/login',
    name: 'login',
    meta: { title: 'Login' },
    component: () => import(/* webpackChunkName: "Login" */ '@/views/login/Login')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import(/* webpackChunkName: "Register" */ '@/views/login/Register')
  },
  {
    path: '/404',
    name: '404',
    component: () => import(/* webpackChunkName: "fail" */ '@/views/exception/404')
  }
]

/**
 * 根路由
 * @type {}
 */
export const asyncRouterMap = [
  {
    path: '/',
    name: 'home',
    redirect: '/dashboard',
    component: Layout,
    children: [
      {
        path: '/dashboard',
        name: 'dashboard',
        redirect: '/dashboard/index',
        component: PageView,
        meta: { title: '主页', keepAlive: true },
        children: [
          {
            path: '/dashboard/index',
            name: 'dashboardIndex',
            component: () => import(/* webpackChunkName: "dashboard" */ '@/views/dashboard/index'),
            meta: { title: '主页', titlePath: '主页', keepAlive: true, icon: 'home', affix: true }
          }
        ]
      },
      {
        path: '/system',
        name: 'system',
        alwaysShow: true,
        component: PageView,
        redirect: '/system/role/index',
        meta: { title: '系统中心', titlePath: '系统中心', icon: 'system', permissionCode: 'systemCenter' },
        children: [
          {
            path: '/system/role/index',
            name: 'roleList',
            component: () => import(/* webpackChunkName: "RoleList" */'@/views/system/role/index'),
            meta: { title: '权限管理', isCache: false, titlePath: '权限管理', permissionCode: 'systemCenter:permissionManagement' }
          },
          {
            path: '/system/role/roleEdit',
            name: 'roleEdit',
            hidden: true,
            component: () => import(/* webpackChunkName: "RoleEdit" */'@/views/system/role/UpdateRole'),
            meta: { title: '修改角色信息', titlePath: '配置角色权限', parentTitle: '权限管理', parentPath: '/system/role/index', permissionCode: 'systemCenter:permissionManagement:rolePermission' }
          },
          {
            path: '/system/role/dataEdit',
            name: 'dataEdit',
            hidden: true,
            component: () => import(/* webpackChunkName: "DataEdit" */'@/views/system/role/UpdateRole'),
            meta: { title: '修改数据信息', titlePath: '配置数据权限', parentTitle: '权限管理', parentPath: '/system/role/index', permissionCode: '' }
          },
          {
            path: '/system/userinfo/index',
            name: 'userinfo',
            component: () => import(/* webpackChunkName: "Userinfo" */'@/views/system/userMgmt/index'),
            meta: { title: '用户信息查询', isCache: false, titlePath: '用户信息查询', permissionCode: 'systemCenter:userInformation' }
          },
          {
            path: '/system/userinfo/dataEdit',
            name: 'checkDateRole',
            hidden: true,
            component: () => import(/* webpackChunkName: "CheckDateRole" */'@/views/system/userMgmt/checkDataRole'),
            meta: { title: '配置数据权限', titlePath: '配置数据权限', parentTitle: '用户信息查询', parentPath: '/system/userinfo/index', permissionCode: 'systemCenter:userInformation:dataPermission' }
          }
        ]
      },
      {
        path: '/productCenter',
        alwaysShow: true,
        component: PageView,
        redirect: '/productCenter/attribute/index',
        name: 'product',
        meta: {
          title: '商品中心',
          icon: 'product',
          titlePath: '商品中心',
          permissionCode: 'commodityCenter'
        },
        children: [
          {
            path: '/productCenter/attribute/index',
            component: () => import('@/views/productCenter/attribute/index'),
            name: 'attributeIndex',
            meta: {
              title: '属性管理',
              titlePath: '属性管理',
              isCache: false,
              permissionCode: 'commodityCenter:propertyManagement'
            }
          },
          {
            path: '/productCenter/attribute/add',
            component: () => import('@/views/productCenter/attribute/updateAttribute'),
            name: 'addAttribute',
            hidden: true,
            meta: {
              parentTitle: '属性管理',
              parentPath: '/productCenter/attribute/index',
              title: '新增属性',
              titlePath: '新增属性',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/attribute/edit',
            component: () => import('@/views/productCenter/attribute/updateAttribute'),
            name: 'editAttribute',
            hidden: true,
            meta: {
              parentTitle: '属性管理',
              parentPath: '/productCenter/attribute/index',
              title: '修改属性',
              titlePath: '修改属性',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/label/index',
            component: () => import('@/views/productCenter/label/index'),
            name: 'labelIndex',
            meta: {
              title: '商品标签管理',
              titlePath: '商品标签管理',
              isCache: false,
              permissionCode: 'commodityCenter:shopLabelManagement'
            }
          },
          {
            path: '/productCenter/label/add',
            component: () => import('@/views/productCenter/label/updateLabel'),
            name: 'addLabel',
            hidden: true,
            meta: {
              parentTitle: '商品标签管理',
              parentPath: '/productCenter/label/index',
              title: '新增标签',
              titlePath: '新增标签',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/label/edit',
            component: () => import('@/views/productCenter/label/updateLabel'),
            name: 'editLabel',
            hidden: true,
            meta: {
              parentTitle: '商品标签管理',
              parentPath: '/productCenter/label/index',
              title: '修改标签',
              titlePath: '修改标签',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/catalog/index',
            component: () => import('@/views/productCenter/catalog/index'),
            name: 'CatalogIndex',
            meta: {
              title: '后台类目',
              titlePath: '后台类目',
              isCache: false,
              permissionCode: 'commodityCenter:backgroundCategory'
            }
          },
          {
            path: '/productCenter/catalog/oneCatalog',
            component: () => import('@/views/productCenter/catalog/update/one'),
            name: 'oneCatalog',
            hidden: true,
            meta: {
              parentTitle: '后台类目',
              parentPath: '/productCenter/catalog/index',
              title: '类目I',
              titlePath: '类目I',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/catalog/twoCatalog',
            component: () => import('@/views/productCenter/catalog/update/two'),
            name: 'twoCatalog',
            hidden: true,
            meta: {
              parentTitle: '后台类目',
              parentPath: '/productCenter/catalog/index',
              title: '类目II',
              titlePath: '类目II',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/catalog/threeCatalog',
            component: () => import('@/views/productCenter/catalog/update/three'),
            name: 'threeCatalog',
            hidden: true,
            meta: {
              parentTitle: '后台类目',
              parentPath: '/productCenter/catalog/index',
              title: '类目III',
              titlePath: '类目III',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/category/index',
            component: () => import('@/views/productCenter/category/index'),
            name: 'Categoryindex',
            meta: {
              title: '前台类目',
              titlePath: '前台类目',
              isCache: false,
              permissionCode: 'commodityCenter:frontDeskDirectory'
            }
          },
          {
            path: '/productCenter/category/oneCategory',
            component: () => import('@/views/productCenter/category/update/one'),
            name: 'oneCategory',
            hidden: true,
            meta: {
              parentTitle: '前台类目',
              parentPath: '/productCenter/category/index',
              title: '类目I',
              titlePath: '类目I',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/category/twoCategory',
            component: () => import('@/views/productCenter/category/update/two'),
            name: 'twoCategory',
            hidden: true,
            meta: {
              parentTitle: '前台类目',
              parentPath: '/productCenter/category/index',
              title: '类目II',
              titlePath: '类目II',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/category/threeCategory',
            component: () => import('@/views/productCenter/category/update/three'),
            name: 'threeCategory',
            hidden: true,
            meta: {
              parentTitle: '前台类目',
              parentPath: '/productCenter/category/index',
              title: '类目III',
              titlePath: '类目III',
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/product/index',
            component: () => import('@/views/productCenter/productMgmt/index'),
            name: 'productMgmt',
            meta: {
              title: '商品管理',
              titlePath: '商品管理',
              isCache: false,
              permissionCode: 'commodityCenter:commodityManagement'
            }
          },
          {
            path: '/productCenter/product/add',
            component: () => import('@/views/productCenter/productMgmt/updateProduct'),
            name: 'addProduct',
            hidden: true,
            meta: {
              parentTitle: '商品管理',
              parentPath: '/productCenter/product/index',
              titlePath: '新增商品',
              title: '新增商品',
              isCache: false,
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/product/edit',
            component: () => import('@/views/productCenter/productMgmt/updateProduct'),
            name: 'editProduct',
            hidden: true,
            meta: {
              parentTitle: '商品管理',
              parentPath: '/productCenter/product/index',
              titlePath: '修改商品',
              title: '修改商品',
              isCache: false,
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/product/detail',
            component: () => import('@/views/productCenter/productMgmt/updateProduct'),
            name: 'productDetail',
            hidden: true,
            meta: {
              parentTitle: '商品管理',
              parentPath: '/productCenter/product/index',
              title: '商品详情',
              titlePath: '商品详情',
              isCache: false,
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/product/copy',
            component: () => import('@/views/productCenter/productMgmt/updateProduct'),
            name: 'copyProduct',
            hidden: true,
            meta: {
              parentTitle: '商品管理',
              parentPath: '/productCenter/product/index',
              title: '复制商品',
              titlePath: '复制商品',
              isCache: false,
              permissionCode: ''
            }
          },
          {
            path: '/productCenter/product/relation',
            component: () => import('@/views/productCenter/productMgmt/productRelation'),
            name: 'productRelation',
            hidden: true,
            meta: {
              parentTitle: '商品管理',
              parentPath: '/productCenter/product/index',
              title: '关联商品',
              titlePath: '关联产品',
              isCache: false,
              permissionCode: ''
            }
          }
        ]
      },
      {
        path: '/orderCenter',
        alwaysShow: true,
        component: PageView,
        redirect: '/orderCenter/masterOrder/index',
        name: 'order',
        meta: {
          title: '订单管理',
          icon: 'order',
          titlePath: '订单管理',
          permissionCode: 'orderManagement'
        },
        children: [
          {
            path: '/orderCenter/masterOrder/index',
            component: () => import('@/views/orderCenter/masterOrder/index'),
            name: 'masterOrder',
            meta: {
              title: '主订单',
              titlePath: '主订单',
              isCache: false,
              permissionCode: 'orderManagement:mainOrder'
            }
          },
          {
            path: '/orderCenter/masterOrder/details',
            component: () => import('@/views/orderCenter/masterOrder/details'),
            name: 'masterOrderDetails',
            hidden: true,
            meta: {
              parentTitle: '主订单',
              parentPath: '/orderCenter/masterOrder/index',
              title: '主订单详情',
              titlePath: '主订单详情',
              permissionCode: 'orderManagement:mainOrder:detail'
            }
          },
          {
            path: '/orderCenter/suborder/index',
            component: () => import('@/views/orderCenter/suborder/index'),
            name: 'suborder',
            meta: {
              title: '子订单',
              titlePath: '子订单',
              isCache: false,
              permissionCode: 'orderManagement:subOrder'
            }
          },
          {
            path: '/orderCenter/suborder/details',
            component: () => import('@/views/orderCenter/suborder/details'),
            name: 'suborderDetails',
            hidden: true,
            meta: {
              parentTitle: '子订单',
              parentPath: '/orderCenter/suborder/index',
              title: '子订单详情',
              titlePath: '子订单详情',
              permissionCode: 'orderManagement:subOrder:detail'
            }
          },
          {
            path: '/orderCenter/suborder/invoiceDetails',
            component: () => import('@/views/orderCenter/suborder/invoiceDetails'),
            name: 'invoiceDetails',
            hidden: true,
            meta: {
              parentTitle: '子订单',
              parentPath: '/orderCenter/suborder/index',
              title: '查看发票详情',
              titlePath: '查看发票详情',
              permissionCode: ''
            }
          },
          {
            path: '/orderCenter/deliveryOrder/index',
            component: () => import('@/views/orderCenter/deliveryOrder/index'),
            name: 'deliveryOrder',
            meta: {
              title: '发货通知单',
              titlePath: '发货通知单',
              isCache: false,
              permissionCode: 'orderManagement:consignmentNote'
            }
          },
          {
            path: '/orderCenter/deliveryOrder/details',
            component: () => import('@/views/orderCenter/deliveryOrder/details'),
            name: 'deliveryOrderDetails',
            hidden: true,
            meta: {
              parentTitle: '发货通知单',
              parentPath: '/orderCenter/deliveryOrder/index',
              title: '发货通知单详情',
              titlePath: '发货通知单详情',
              permissionCode: 'orderManagement:consignmentNote:detail'
            }
          },
          {
            path: '/orderCenter/returnOrder/index',
            component: () => import('@/views/orderCenter/returnOrder/index'),
            name: 'returnOrder',
            meta: {
              title: '退货单',
              titlePath: '退货单',
              isCache: false,
              permissionCode: 'orderManagement:returnNote'
            }
          },
          {
            path: '/orderCenter/previewImgs',
            component: () => import('@/views/orderCenter/components/imgList'),
            name: 'previewImgs',
            hidden: true,
            meta: {
              parentTitle: '退货单',
              parentPath: '/orderCenter/returnOrder/index',
              title: '查看图片',
              titlePath: '查看图片',
              permissionCode: 'orderManagement:returnNote:viewPicturesOfReturn'
            }
          },
          {
            path: '/orderCenter/returnOrder/details',
            component: () => import('@/views/orderCenter/returnOrder/details'),
            name: 'returnOrderDetails',
            hidden: true,
            meta: {
              parentTitle: '退货单',
              parentPath: '/orderCenter/returnOrder/index',
              title: '退货单详情',
              titlePath: '退货单详情',
              permissionCode: 'orderManagement:returnNote:detail'
            }
          },
          {
            path: '/orderCenter/exchangeOrder/index',
            component: () => import('@/views/orderCenter/exchangeOrder/index'),
            name: 'exchangeOrder',
            meta: {
              title: '换货单',
              titlePath: '换货单',
              isCache: false,
              permissionCode: 'orderManagement:swapNote'
            }
          },
          {
            path: '/orderCenter/exchangeOrder/detail',
            component: () => import('@/views/orderCenter/exchangeOrder/details'),
            hidden: true,
            name: 'exchangeOrderDetails',
            meta: {
              title: '换货单详情',
              parentTitle: '换货单',
              parentPath: '/orderCenter/exchangeOrder/index',
              titlePath: '换货单详情',
              permissionCode: 'orderManagement:swapNote:detail'
            }
          },
          {
            path: '/orderCenter/exChangePreviewImgs',
            component: () => import('@/views/orderCenter/components/imgList'),
            name: 'exChangePreviewImgs',
            hidden: true,
            meta: {
              parentTitle: '换货单详情',
              path: '/orderCenter/exchangeOrder/detail',
              title: '查看图片',
              titlePath: '查看图片',
              permissionCode: ''
            }
          },
          {
            path: '/orderCenter/refundOrder/index',
            component: () => import('@/views/orderCenter/refundOrder/index'),
            name: 'refundOrder',
            meta: {
              title: '退款单',
              titlePath: '退款单',
              isCache: false,
              permissionCode: 'orderManagement:refundNote'
            }
          },
          {
            path: '/orderCenter/refundOrder/details',
            component: () => import('@/views/orderCenter/refundOrder/details'),
            name: 'refundOrderDetails',
            hidden: true,
            meta: {
              parentTitle: '退款单',
              parentPath: '/orderCenter/refundOrder/index',
              title: '退款单详情',
              titlePath: '退款单详情',
              permissionCode: 'orderManagement:refundNote:detail'
            }
          },
          {
            path: '/orderCenter/carWashOrder/index',
            component: () => import('@/views/orderCenter/carWashOrder/index'),
            name: 'carWashOrder',
            meta: {
              title: '洗车订单',
              titlePath: '洗车订单',
              isCache: false,
              permissionCode: 'orderManagement:washOrderManagement'
            }
          },
          {
            path: '/orderCenter/carWashOrder/details',
            component: () => import('@/views/orderCenter/carWashOrder/details'),
            name: 'carWashOrderDetails',
            hidden: true,
            meta: {
              parentTitle: '洗车订单',
              parentPath: '/orderCenter/carWashOrder/index',
              title: '洗车订单详情',
              titlePath: '洗车订单详情',
              permissionCode: ''
            }
          },
          {
            path: '/orderCenter/serviceOrder/index',
            component: () => import('@/views/orderCenter/serviceOrder/index'),
            name: 'serviceOrder',
            meta: {
              title: '服务订单管理',
              titlePath: '服务订单管理',
              isCache: false,
              permissionCode: 'orderManagement:workOrderManagement'
            }
          },
          {
            path: '/orderCenter/serviceOrder/details',
            component: () => import('@/views/orderCenter/serviceOrder/details'),
            name: 'serviceOrderDetails',
            hidden: true,
            meta: {
              parentTitle: '服务订单管理',
              parentPath: '/orderCenter/serviceOrder/index',
              title: '服务订单详情',
              titlePath: '服务订单详情',
              permissionCode: ''
            }
          },
          {
            path: '/orderCenter/carManagement/index',
            component: () => import('@/views/orderCenter/carManagement/index'),
            name: 'cardManagement',
            meta: {
              title: '上门取送车订单管理',
              titlePath: '上门取送车管理',
              isCache: false
            }
          },
          {
            path: '/orderCenter/carManagement/details',
            component: () => import('@/views/orderCenter/carManagement/details'),
            name: 'carManagementDetails',
            hidden: true,
            meta: {
              parentTitle: '上门取送车订单管理',
              parentPath: '/orderCenter/carManagement/index',
              title: '取送车订单详情',
              titlePath: '取送车订单详情',
              permissionCode: ''
            }
          }
        ]
      },
      {
        path: '/serviceCenter',
        alwaysShow: true,
        component: PageView,
        redirect: '/serviceCenter/serviceProvider/index',
        name: 'serviceCenter',
        meta: {
          title: '服务权益配置中心',
          icon: 'service',
          titlePath: '服务权益配置中心',
          permissionCode: 'serviceRightsConfigurationCenter'
        },
        children: [
          {
            path: '/serviceCenter/serviceProvider/index',
            component: () => import('@/views/serviceCenter/serviceProvider/index'),
            name: 'serviceProvider',
            meta: {
              title: '服务商管理',
              titlePath: '服务商管理',
              isCache: false,
              permissionCode: 'serviceRightsConfigurationCenter:serviceProviderManagement'
            }
          },
          {
            path: '/serviceCenter/serviceProvider/add',
            component: () => import('@/views/serviceCenter/serviceProvider/updateProvider'),
            name: 'addProvider',
            hidden: true,
            meta: {
              parentTitle: '服务商管理',
              parentPath: '/serviceCenter/serviceProvider/index',
              title: '添加服务商',
              titlePath: '添加服务商',
              permissionCode: 'serviceRightsConfigurationCenter:serviceProviderManagement:add'
            }
          },
          {
            path: '/serviceCenter/serviceProvider/edit',
            component: () => import('@/views/serviceCenter/serviceProvider/updateProvider'),
            name: 'editProvider',
            hidden: true,
            meta: {
              parentTitle: '服务商管理',
              parentPath: '/serviceCenter/serviceProvider/index',
              title: '修改服务商',
              titlePath: '修改服务商',
              permissionCode: 'serviceRightsConfigurationCenter:serviceProviderManagement:edit'
            }
          },
          {
            path: '/serviceCenter/serviceMgmt/index',
            component: () => import('@/views/serviceCenter/serviceMgmt/index'),
            name: 'serviceMgmt',
            meta: {
              title: '服务管理',
              titlePath: '服务管理',
              isCache: false,
              permissionCode: 'serviceRightsConfigurationCenter:serviceManagement'
            }
          },
          {
            path: '/serviceCenter/serviceMgmt/add',
            component: () => import('@/views/serviceCenter/serviceMgmt/updateService'),
            name: 'addService',
            hidden: true,
            meta: {
              parentTitle: '服务管理',
              parentPath: '/serviceCenter/serviceMgmt/index',
              title: '添加服务',
              titlePath: '添加服务',
              permissionCode: 'serviceRightsConfigurationCenter:serviceManagement:add'
            }
          },
          {
            path: '/serviceCenter/serviceMgmt/edit',
            component: () => import('@/views/serviceCenter/serviceMgmt/updateService'),
            name: 'editService',
            hidden: true,
            meta: {
              parentTitle: '服务管理',
              parentPath: '/serviceCenter/serviceMgmt/index',
              title: '修改服务',
              titlePath: '修改服务',
              permissionCode: 'serviceRightsConfigurationCenter:serviceManagement:edit'
            }
          },
          {
            path: '/serviceCenter/servicePackage/index',
            component: () => import('@/views/serviceCenter/servicePackage/index'),
            name: 'servicePackage',
            meta: {
              title: '服务包管理',
              titlePath: '服务包管理',
              isCache: false,
              permissionCode: 'serviceRightsConfigurationCenter:servicePackManagement'
            }
          },
          {
            path: '/serviceCenter/servicePackage/add',
            component: () => import('@/views/serviceCenter/servicePackage/updatePackage'),
            name: 'addPackage',
            hidden: true,
            meta: {
              parentTitle: '服务包管理',
              parentPath: '/serviceCenter/servicePackage/index',
              title: '添加服务包',
              titlePath: '添加服务包',
              permissionCode: 'serviceRightsConfigurationCenter:servicePackManagement:add'
            }
          },
          {
            path: '/serviceCenter/servicePackage/edit',
            component: () => import('@/views/serviceCenter/servicePackage/updatePackage'),
            name: 'editPackage',
            hidden: true,
            meta: {
              parentTitle: '服务包管理',
              parentPath: '/serviceCenter/servicePackage/index',
              title: '修改服务包',
              titlePath: '修改服务包',
              permissionCode: 'serviceRightsConfigurationCenter:servicePackManagement:edit'
            }
          },
          {
            path: '/serviceCenter/equityMgmt/index',
            component: () => import('@/views/serviceCenter/equityMgmt/index'),
            name: 'equityMgmt',
            meta: {
              title: '服务权益管理',
              titlePath: '服务权益管理',
              isCache: false,
              permissionCode: 'serviceRightsConfigurationCenter:serviceRightsManagement'
            }
          },
          {
            path: '/serviceCenter/equityMgmt/details',
            component: () => import('@/views/serviceCenter/equityMgmt/details'),
            name: 'equityDetails',
            hidden: true,
            meta: {
              title: '服务权益详情',
              titlePath: '服务权益详情',
              parentPath: '/serviceCenter/equityMgmt/index',
              parentTitle: '服务权益管理',
              isCache: false,
              permissionCode: ''
            }
          }
        ]
      },
      {
        path: '/couponsCenter',
        alwaysShow: true,
        component: PageView,
        redirect: '/couponsCenter/couponMgmt/index',
        name: 'couponsCenter',
        meta: {
          title: '券中心',
          icon: 'coupon',
          titlePath: '券中心',
          permissionCode: 'ticketCenter'
        },
        children: [
          {
            path: '/couponsCenter/couponMgmt/index',
            component: () => import('@/views/couponsCenter/couponMgmt/index'),
            name: 'couponMgmt',
            meta: {
              title: '券池管理',
              titlePath: '券池管理',
              isCache: false,
              permissionCode: 'ticketCenter:ticketPoolManagement'
            }
          },
          {
            path: '/couponsCenter/couponMgmt/add',
            component: () => import('@/views/couponsCenter/couponMgmt/detail'),
            name: 'addCoupon',
            hidden: true,
            meta: {
              parentTitle: '券池管理',
              parentPath: '/couponsCenter/couponMgmt/index',
              title: '新建',
              titlePath: '新建',
              permissionCode: 'ticketCenter:ticketPoolManagement:add'
            }
          },
          {
            path: '/couponsCenter/couponMgmt/detail',
            component: () => import('@/views/couponsCenter/couponMgmt/detail'),
            name: 'couponDetail',
            hidden: true,
            meta: {
              parentTitle: '券池管理',
              parentPath: '/couponsCenter/couponMgmt/index',
              title: '详情',
              titlePath: '详情',
              isCache: false,
              permissionCode: ''
            }
          },
          {
            path: '/couponsCenter/couponMgmt/couponList',
            component: () => import('@/views/couponsCenter/couponMgmt/couponList'),
            hidden: true,
            name: 'couponList',
            meta: {
              title: '券码列表',
              titlePath: '券码列表',
              parentPath: '/couponsCenter/couponMgmt/index',
              parentTitle: '券池管理',
              isCache: false,
              permissionCode: 'ticketCenter:ticketPoolManagement:ticketCodeList'
            }
          },
          {
            path: '/couponsCenter/couponMgmt/couponList/import',
            component: () => import('@/views/couponsCenter/couponMgmt/import/fileImport'),
            hidden: true,
            name: 'fileImport',
            meta: {
              title: '导入券码',
              titlePath: '导入券码',
              parentPath: '/couponsCenter/couponMgmt/index',
              parentTitle: '券池管理',
              isCache: false,
              permissionCode: 'ticketCenter:ticketPoolManagement:importTicketCode'
            }
          },
          {
            path: '/couponsCenter/couponCode/index',
            component: () => import('@/views/couponsCenter/couponCode/index'),
            name: 'couponCode',
            meta: {
              title: '用户券码管理',
              titlePath: '用户券码管理',
              isCache: false,
              permissionCode: 'ticketCenter:userTicketCodeManagement'
            }
          }
        ]
      },
      {
        path: '/shopConfig',
        alwaysShow: true,
        component: PageView,
        redirect: '/shopConfig/pageMgmt',
        name: 'shopConfig',
        meta: {
          title: '在线商城配置管理',
          icon: 'config',
          titlePath: '在线商城配置管理',
          permissionCode: 'onlineShopConfigurationManagement'
        },
        children: [
          {
            path: '/shopConfig/pageMgmt',
            component: () => import('@/views/shopConfig/pageMgmt'),
            name: 'listPagesMgmt',
            meta: {
              title: '页面配置',
              titlePath: '页面配置',
              isCache: false,
              permissionCode: 'onlineShopConfigurationManagement:pageConfiguration'
            }
          }
        ]
      },
      {
        path: '/masterData',
        alwaysShow: true,
        component: PageView,
        redirect: '/masterData/attachment',
        name: 'masterData',
        meta: {
          title: '主数据管理',
          icon: 'dict',
          titlePath: '主数据管理',
          permissionCode: 'masterDataManagement'
        },
        children: [
          {
            path: '/masterData/attachment',
            component: () => import('@/views/masterData/attachment/index'),
            name: 'attachmentList',
            meta: {
              title: '附件主数据',
              titlePath: '附件主数据',
              isCache: false,
              permissionCode: 'masterDataManagement:attachmentMasterData'
            }
          },
          {
            path: '/masterData/attachment/details',
            component: () => import('@/views/masterData/attachment/details'),
            name: 'attachmentDetails',
            hidden: true,
            meta: {
              parentTitle: '附件主数据',
              parentPath: '/masterData/attachment/index',
              title: '附件主数据详情',
              titlePath: '附件主数据详情',
              permissionCode: ''
            }
          }
        ]
      }
    ]
  },
  {
    path: '*', redirect: '/404', hidden: true
  }
]
export const rootRouter = {
  path: '/',
  name: 'home',
  redirect: '/dashboard/index',
  component: Layout,
  children: []
}
